package com.bite.deom3;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
          People people1 = new People("张三");
          People people2 =(People) people1.clone();

          people1.getM().setMonry(98.0f);
        System.out.println(people1.getM().getMonry());
        System.out.println(people2.getM().getMonry());




//        People people1 = new People("张三");
//        System.out.println(people1.getM().getMonry());
//
//        People people2 = (People) people1.clone();
//        System.out.println(people2.getM().getMonry());
//
//        System.out.println("=============");
//
//        people2.getM().setMonry(98.5f);
//        System.out.println(people1.getM().getMonry());
//        System.out.println(people2.getM().getMonry());
//
//        System.out.println("==============");


    }
}
